package com.lp.biz;

import com.lp.biz.train.service.BizTrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @program: biz
 * @description:
 * @author: Ke.Song
 * @since: 2024-04-03 22:34:18
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private BizTrainService trainService;

    @GetMapping("/{id}")
    public ResponseEntity<Resource> test(@PathVariable Integer id) throws IOException {
        trainService.test();
        return ResponseEntity.ok().build();
    }
}
